package com.nut.lmsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nut.lmsc.entity.Banner;
import com.nut.lmsc.entity.CirclePerson;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CirclePersonMapper extends BaseMapper<CirclePerson> {

    @Select("select * from biz_circle_person where circle_id=#{circleId}")
    List<CirclePerson> selectByCircleId(Integer circleId);

    Page<CirclePerson> listPage(Page page,
                                @Param("circleId") Integer circleId,
                                @Param("name") String name,
                                @Param("mobile") String mobile,
                                @Param("status") Integer status,
                                @Param("role") Integer role);

}
